//-----------------------------------------------------------------------
// <copyright file="a_Sessions_SService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Sessions_SService
    {
        #region a_Sessions_S

        public static void Createa_Sessions_S(a_Sessions_S a_Sessions_S)
        {            
            try
            {
                a_Sessions_SDAO a_Sessions_SDAO = new a_Sessions_SDAO();
                a_Sessions_SDAO.Createa_Sessions_S(a_Sessions_S);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Sessions_S(a_Sessions_S a_Sessions_S)
        {            
            try
            {
                a_Sessions_SDAO a_Sessions_SDAO = new a_Sessions_SDAO();
                a_Sessions_SDAO.Updatea_Sessions_S(a_Sessions_S);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static void Updatea_Sessions_S(string sessionID)
        {
            try
            {
                a_Sessions_SDAO a_Sessions_SDAO = new a_Sessions_SDAO();
                a_Sessions_SDAO.Updatea_Sessions_S(sessionID);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }    

        public static void Deletea_Sessions_S(string sessionID)
        {            
            try
            {
                a_Sessions_SDAO a_Sessions_SDAO = new a_Sessions_SDAO();
                a_Sessions_SDAO.Deletea_Sessions_S(sessionID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Sessions_S Geta_Sessions_S(string sessionID)
        {            
            try
            {
                a_Sessions_SDAO a_Sessions_SDAO = new a_Sessions_SDAO();
                return a_Sessions_SDAO.Geta_Sessions_S(sessionID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Sessions_SCollection Geta_Sessions_SList(a_Sessions_SColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Sessions_SDAO a_Sessions_SDAO = new a_Sessions_SDAO();
                return a_Sessions_SDAO.Geta_Sessions_SList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Sessions_SCollection Geta_Sessions_SList(a_Sessions_SColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Sessions_SDAO a_Sessions_SDAO = new a_Sessions_SDAO();
                return a_Sessions_SDAO.Geta_Sessions_SList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}